package com.huike.clues.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huike.clues.domain.TbRulePool;
import com.huike.clues.domain.dto.TbRulePoolDTO;
import com.huike.clues.service.TbRulePoolService;
import com.huike.clues.mapper.TbRulePoolMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 93238
 * @description 针对表【tb_rule_pool(线索池规则)】的数据库操作Service实现
 * @createDate 2023-10-12 06:35:46
 */
@Service
public class TbRulePoolServiceImpl extends ServiceImpl<TbRulePoolMapper, TbRulePool> implements TbRulePoolService{
    @Resource
    private TbRulePoolMapper tbRulePoolMapper;


    @Override
    public TbRulePool selectTbRulePoolByType(String type) {
        return tbRulePoolMapper.selectTbRulePoolByType(type);
    }

    @Override
    public TbRulePool getTbRule(String type) {
        TbRulePool data = tbRulePoolMapper.getTbRule(type);
        return data;
    }

    @Override
    public void updatePoolRule(TbRulePoolDTO dto) {
        tbRulePoolMapper.updatePoolRule(dto);
    }
}




